package com.ulife.order.api.core.refund;

import com.ulife.common.gateway.utils.annotation.Description;

/**
 * Created by Lbq on 2016/05/25.
 */
@Description("退款路径")
public enum RefundWay {
    /*
    原支付路径退
    * */
    @Description("不限")
    NoLimit(0),
    @Description("原支付路径退")
    PayWayRefund(1);


    private int value = 1;

    private RefundWay(int value) {
        this.value = value;
    }

    public static RefundWay valueOf(int value){
        switch (value){
            case 0:return NoLimit;
            case 1:return PayWayRefund;
            default:return null;
        }
    }
    public int value(){
        return this.value;
    }
}
